package com.example.studentmag1.mapper;

import com.example.studentmag1.entity.Students;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author admin
 * @since 2022-01-08
 */
public interface StudentsMapper extends BaseMapper<Students> {
    public boolean deleteByStudentId(@Param("stuId") String studentId);

    @Select("select *from students where student_age = #{age}")
    List<Students> selectByAge(@Param("age") Integer age);
}
